import service from '@/utils/request'

export const subscribeList = (data) => { // 入驻审核列表
  return service({
    url: '/reviewer_subscribe/list',
    method: 'get',
    params: data
  })
}

export const subscribeUpdate = (data) => { // 入驻审核
  return service({
    url: '/reviewer_subscribe/update',
    method: 'get',
    data: data
  })
}

export const financialAdd = (data) => { // 入驻配置
  return service({
    url: '/financial/add',
    method: 'post',
    data: data
  })
}

export const financialAgreement = (data) => { // 协议管理
  return service({
    url: '/financial/agreement',
    method: 'post',
    data: data
  })
}

export const financialReward = (data) => { // 邀请奖励配置
  return service({
    url: '/financial/reward',
    method: 'post',
    data: data
  })
}

export const financialRecords = (data) => { // 交易记录
  return service({
    url: '/financial/trade/records',
    method: 'get',
    params: data
  })
}

export const waste_resourceList = (data) => { // 废品资源列表
  return service({
    url: '/waste/resource/list',
    method: 'get',
    params: data
  })
}

export const waste_resourceAdd = (data) => { // 废品资源添加
  return service({
    url: '/waste/resource/add',
    method: 'post',
    data: data
  })
}

export const waste_resourceUpdate = (data) => { // 废品资源修改
  return service({
    url: '/waste/resource/put',
    method: 'put',
    data: data
  })
}

export const waste_resourceDelete = (data) => { // 废品资源删除
  return service({
    url: '/waste/resource/del',
    method: 'delete',
    data: data
  })
}



export const waste_typeList = (data) => { // 废品拆解列表
  return service({
    url: '/waste/type/list',
    method: 'get',
    params: data
  })
}

export const waste_typeAdd = (data) => { // 废品拆解添加
  return service({
    url: '/waste/type/add',
    method: 'post',
    data: data
  })
}
export const waste_Image = (data) => { // 腾讯资源同步
  return service({
    url: '/waste/sync/tx/imgs',
    method: 'post',
    data: data
  })
}
export const waste_typeUpdate = (data) => { // 废品拆解修改
  return service({
    url: '/waste/type/put',
    method: 'put',
    data: data
  })
}

export const waste_typeDelete = (data) => { // 废品拆解删除
  return service({
    url: '/waste/type/del',
    method: 'delete',
    data: data
  })
}